﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Vistas
{
    /// <summary>
    /// Lógica de interacción para Menu.xaml
    /// </summary>
    public partial class Menu : Window
    {
        public Menu()
        {
            InitializeComponent();   
        
        }
        public Menu(string usuario)
        {
            InitializeComponent();

            if (usuario == "admin")
            {
                operador.Visibility = Visibility.Collapsed;
            }
            else {
                administrador.Visibility = Visibility.Collapsed;
            }           
        }

        private void administrador_Click(object sender, RoutedEventArgs e)
        {
            
        }

        private void salirAdm_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void sectores_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Gestion de Sectores");
        }

        private void tipoVehiculo_Click(object sender, RoutedEventArgs e)
        {

            Vistas.TiposDeVehiculo tipo = new TiposDeVehiculo();
            tipo.Show();
        }

        private void operador_Click(object sender, RoutedEventArgs e)
        {
           
        }
        private void clientes_Click(object sender, RoutedEventArgs e) 
        {
            Vistas.GestionDeClientes cliente = new GestionDeClientes();
            cliente.Show();
        }
        private void estacionamiento_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Gestion de Estacionamiento");
        }
        private void salirOpe_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            VehiculosEnPlaya playa = new VehiculosEnPlaya();
            playa.Show();
            
        }

        private void Vehiculos_en_Playa_Click(object sender, RoutedEventArgs e)
        {
            VehiculosEnPlaya vehiculos = new VehiculosEnPlaya();
            vehiculos.Show();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

    }
}
